<div class="main">
  <p>注册</p>
  <form action="zhuce-psw.html" method="post">
      <div class="d0">
          <img src="assets/images/yonghuming.png" alt="用户名">
          <input type="text" placeholder="用户名" required [(ngModel)]="userInfo.name" name="username">
      </div>
      <div class="d1">
          <img src="assets/images/shoujihao.jpg" alt="手机号">
          <input type="text" placeholder="手机号" required oninput = "value=value.replace(/[^\d]/g,'')" [(ngModel)]="userInfo.phoneNumber" name="phoneNumber">
      </div>
      <div class="d2" style="margin-top: 0.07rem">
          <img src="assets/images/mima.jpg" alt="验证码">
          <input class="yanzheng" type="text" placeholder="验证码" required [(ngModel)]="code" name="code">
          <input type="button" value="获取验证码" class="btn-get">
      </div>
      <input type="submit" value="下一步" class="submit" style="margin-top: 2.505rem" (click)=next()>
  </form>
</div>